/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.KDniao.service.logistics;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.KDniao.dao.LogisticsThreePartyDao;
import com.thinkgem.jeesite.modules.KDniao.entity.LogisticsThreeParty;

/**
 * 快递鸟接口配置信息Service
 * @author Owen
 * @version 2017-04-05
 */
@Service
@Transactional(readOnly = true)
public class LogisticsThreePartyService extends CrudService<LogisticsThreePartyDao, LogisticsThreeParty> {

    @Autowired
    private LogisticsThreePartyDao logisticsThreePartyDao;

	public LogisticsThreeParty get(String id) {
		return super.get(id);
	}
	
	public List<LogisticsThreeParty> findList(LogisticsThreeParty logisticsThreeParty) {
		return super.findList(logisticsThreeParty);
	}
	
	public Page<LogisticsThreeParty> findPage(Page<LogisticsThreeParty> page, LogisticsThreeParty logisticsThreeParty) {
		return super.findPage(page, logisticsThreeParty);
	}
	
	@Transactional(readOnly = false)
	public void save(LogisticsThreeParty logisticsThreeParty) {
		super.save(logisticsThreeParty);
	}
	
	@Transactional(readOnly = false)
	public void delete(LogisticsThreeParty logisticsThreeParty) {
		super.delete(logisticsThreeParty);
	}
	
    public List<LogisticsThreeParty> findisenadleList() {
        return logisticsThreePartyDao.findisenadleList();
    }

    @Transactional(readOnly = false)
    public void updateisenadle(LogisticsThreeParty logisticsThreeParty) {
        logisticsThreePartyDao.updateisenadle(logisticsThreeParty);
    }

    //查询所有并且按禁用排序
    public List<LogisticsThreeParty> findAllbyDesc() {
        return logisticsThreePartyDao.findAllbyDesc();
    }
}